<?php 

$domain = $_SERVER['HTTP_HOST'];

$domain = ereg_replace('www\.', '', $domain);

$db = parse_ini_file("config/db.ini");
$gconfig = parse_ini_file("config/galleries.ini");
$sconfig = parse_ini_file("config/site.ini");

mysql_connect($db['host'],$db['user'],$db['pass']);
@mysql_select_db($db['db']) or die( "Unable to select database");

if (!isset($title)) {
	$title = $sconfig['title'];
}

?>